const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  employee: state => state.bms.employee,
  token: state => state.bms.employee && state.bms.employee.token,
  avatar: state => state.bms.employee && state.bms.employee.avatar,
  name: state => state.bms.employee && state.bms.employee.userName,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes,
  sidebarRouters: state => state.permission.sidebarRouters,
  permissionMenu: state => state.bms.permissionMenu
}
export default getters
